﻿using System;
using System.Collections.Generic;

namespace MessagePack.Formatters
{
	// Token: 0x02000018 RID: 24
	public class InterfaceEnumerableFormatter<T> : CollectionFormatterBase<T, T[], IEnumerable<T>>
	{
		// Token: 0x06000055 RID: 85 RVA: 0x00002CC0 File Offset: 0x000010C0
		protected override void Add(T[] collection, int index, T value)
		{
			collection[index] = value;
		}

		// Token: 0x06000056 RID: 86 RVA: 0x00002CCA File Offset: 0x000010CA
		protected override T[] Create(int count)
		{
			return new T[count];
		}

		// Token: 0x06000057 RID: 87 RVA: 0x00002CD2 File Offset: 0x000010D2
		protected override IEnumerable<T> Complete(T[] intermediateCollection)
		{
			return intermediateCollection;
		}
	}
}
